<?php

namespace aerovuelos\UbicacionBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ProvinciasType extends AbstractType {

    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder
                ->add('pais', null, array('required'=>true, 'attr'=> array('class'=>'uniform')))
                ->add('nombre')
                ->add('sigla')

        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver) {
        $resolver->setDefaults(array(
            'data_class' => 'aerovuelos\UbicacionBundle\Entity\Provincias'
        ));
    }

    public function getName() {
        return 'aerovuelos_ubicacionbundle_provinciastype';
    }

}
